﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace QLKS
{
    public partial class frmBaoCaoMatDo : DevExpress.XtraEditors.XtraForm
    {
        public frmBaoCaoMatDo()
        {
            InitializeComponent();
        }
        private void btnXem_Click(object sender, EventArgs e)
        {
            DataTable table=BUS.BCMatDoPhongBUS.SelectAll(DateTime.Parse(dteTuNgay.EditValue.ToString()),DateTime.Parse(dteDenNgay.EditValue.ToString())).Tables[0];
            gridControl1.DataSource = table;
        }

        private void frmBaoCaoDoanhThu_Load(object sender, EventArgs e)
        {
            dteTuNgay.EditValue = DateTime.Now.AddMonths(-1);
            dteDenNgay.EditValue = DateTime.Now;
        }
    }
}